﻿@model WorkTimePrj.Models.vwVOT
  <tr>
        <td>
            @Html.DisplayFor(x => x.Num)
            @Html.HiddenFor(x => x.DisplayName, new { @Value = Model.DisplayName})
            @Html.HiddenFor(x => x.Type, new { @Value = Model.Type })
            @Html.HiddenFor(x => x.ID, new { @Value = Model.ID })
            @Html.HiddenFor(x => x.hour, new { @Value = Model.hour })
            @Html.HiddenFor(x => x.addUser, new { @Value = Model.addUser })
            @Html.HiddenFor(x => x.addTime, new { @Value = Model.addTime })
        </td>
        <td>
            @Html.DisplayFor(x => x.DisplayName)
        </td>
        <td>
            @Html.DisplayFor(x => x.Type)
        </td>
        <td>
            @Html.DisplayFor(x => x.startDate)
        </td>
        <td>
            @Html.DisplayFor(x => x.endDate)
        </td>
        <td>
            @Html.DisplayFor(x => x.hour)h
        </td>
        <td>
            @Html.DisplayFor(x => x.addUser)
        </td>
        <td>
            @Html.DisplayFor(x => x.addTime)
        </td>
        <td>
            <a href="#" class="Link" onclick="window.open('/WorkTimePrj/Admin/EditVOT/@Model.ID');">修改</a>
            @Html.ActionLink("详细信息", "DetailVOT", new { id = Model.ID }, new { @class = "Link",target="_blank"})
            @Ajax.ActionLink("删除", "DelVOT", new { Id = Model.ID },
         new AjaxOptions
         {
             Confirm = "确认要删除吗？",
             HttpMethod = "Delete",
             OnSuccess = "alert('删除成功！');window.location.reload();",
             OnFailure = "alert('删除失败！');"
         }, new { @class = "Link" })
        </td>
    </tr>
    
